package com.yzp.service;

import com.yzp.entity.User;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @title: UserService
 * @Author: yzp
 * @Date: 2019/7/22 16:48
 * @Version 1.0
 */
public interface UserService {
    List<User> findAll();

    User findOne(Long id);

    User findByName(String name);

    List<User> findByJPQL(String name, Long id);

    Page findByPage(String name, Integer page, Integer size);

    void save(User user);
}
